/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 学生副表-德育减分Entity
 * @author 于昭龙
 * @version 2022-02-11
 */
@Data
public class StudentMoreduViceSub extends DataEntity<StudentMoreduViceSub> {
	
	private static final long serialVersionUID = 1L;
	private StudentMoreduMain sub;		// 关联id 父类
	private String subId;
	@ExcelField(title="扣分原因", align=2, sort=8)
	private String subReason;		// 扣分原因
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="扣分时间不能为空")
	@ExcelField(title="扣分时间", align=2, sort=9)
	private Date subTime;		// 扣分时间
	@ExcelField(title="扣分数", align=2, sort=10)
	private String subPoint;		// 扣分数
	private String subState;
	private String time; //查询时间
	private String approver; //审批人
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="加分时间", align=2, sort=12)
	private Date auditTime; // 审核时间
	public StudentMoreduViceSub() {
		super();
	}

	public StudentMoreduViceSub(String id){
		super(id);
	}

	public StudentMoreduViceSub(StudentMoreduMain sub) {
		this.sub = sub;
	}
}